function load(){
	
	var params = 1;
	$.ajax({
		url :Server + "/app/ord/list",
		type : "POST",
		data:{
			"offset" : 0,
			"limit" : 10,
			"id" : $("#useridoflogin").val()
		},
		success : function(data) {
			
			var m = data.rows;
			var html = "";
			var pattern = '<li>\
			        <div class="row1">\
				         <div>\
					          <span>#0 </span>\
					          <span>订单编号: #1</span>\
				         </div>\
				         <div><img src="images/usercenter_icon2.png" /></div>\
			        </div>\
			        <div class="row2">\
				         <div class="tab1"><img src="#2" /></div>\
				         <div class="tab2">#3</div>\
				         <div class="tab3">#4</div>\
				         <div class="tab4">#5</div>\
				         <div class="tab5">\
					            <p>#6</p>\
					              <p>\
				                     <a onclick="findOrder(#7)">查看详情</a>\
					              </p>\
				         </div>\
				         <div class="tab6">\
					         <div class="btn">\
						          <a href="productDetail5.html">#8</a>\
					         </div>\
					         <div class="time">还剩11:23:02</div>\
				         </div>\
			       </div>\
		     </li>';
			 for(var i = 0; i < m.length; i++){
				 var item="";
				 var Status = "";
				 var Status1 = "";
				 switch (m[i].status)//0:待确认 1:待支付 2:待试验 3:已完成 4:已评价 5:已关闭6:未评价
					{
					case 0:
						Status = "待支付";
						Status1 = "待确认";
						break;
					case 1:
						Status = "已完成";
						Status1 = "已确认";
						break;
					case 2:
						Status = "已完成";
						Status1 = "未评价";
						break;
					case 3:
						Status = "已完成";
						Status1 = "已评价";
						break;
					case 4:
						Status = "已完成";
						Status1 = "已关闭";
						break;
					}
				 item += pattern.replace("#0", m[i].createTime)
				         .replace("#1", m[i].number)
			             //.replace("#2", m[i].conUser.username)
			             .replace("#3", m[i].insInfo.chineseName)
			             .replace("#4", m[i].insInfo.model)
			             .replace("#5", m[i].insInfo.price)
			             .replace("#6", Status)
			             .replace("#7", m[i].id)
			             .replace("#8", Status1);
				 html += item;
				 
			 }
			 $("#userorderList").html(html);
				
		},
		error : function(msg) {
			alert(JSON.stringify(data));
		}
	});
}


function findOrder(id){
	$(location).attr('href', 'new_page?id='+id+'');
}
